package org.gp.core.service;

import com.baomidou.mybatisplus.service.IService;
import org.gp.core.entity.Hobby;
import org.gp.core.entity.dto.ResponseDTO;
import org.gp.core.entity.result.UserHobbyResult;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LuoLiang
 * @since 2017-01-24
 */
public interface IHobbyService extends IService<Hobby> {
    /**
     * 根据用户id查询用户的喜好
     *
     * @param userId
     * @return
     */
    ResponseDTO<UserHobbyResult> getHobbyByUser(Integer userId);

    ResponseDTO updateHobby(Integer userId, String hobbyStr);
}
